////////////////////////////////////////////////////////////////////////////
//
//  Crytek Engine Source File.
//  Copyright (C), Crytek Studios, 2001-2006.
// -------------------------------------------------------------------------
//  File name:   FacialVideoFrameDialog.h
//  Version:     v1.00
//  Created:     18/12/2006 by Michael S.
//  Compilers:   Visual Studio.NET 2005
//  Description: 
// -------------------------------------------------------------------------
//  History:
//
////////////////////////////////////////////////////////////////////////////
#ifndef __FACIALVIDEOFRAMEDIALOG_H__
#define __FACIALVIDEOFRAMEDIALOG_H__

#include "FacialEdContext.h"
#include "ToolbarDialog.h"
//#include <atlimage.h>

class CImage2;

class CFacialVideoFrameDialog : public CToolbarDialog
{
	DECLARE_DYNAMIC(CFacialVideoFrameDialog)
public:
	enum { IDD = IDD_DATABASE };

	CFacialVideoFrameDialog();
	~CFacialVideoFrameDialog();

	void SetContext(CFacialEdContext* pContext);
	void SetResolution(int width, int height, int bpp);
	void* GetBits();
	int GetPitch();	

	virtual BOOL PreTranslateMessage(MSG* pMsg);
	virtual void OnOK() {};
	virtual void OnCancel() {};
	virtual BOOL OnInitDialog();
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnSize(UINT nType, int cx, int cy);
	virtual void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);

protected:
	DECLARE_MESSAGE_MAP()

	afx_msg void OnPaint();
	CBitmap m_offscreenBitmap;

	CFacialEdContext* m_pContext;
	HACCEL m_hAccelerators;
	//ATL::CImage m_image;
	CImage2	*m_image;
	//CStatic m_static;
};

#endif //__FACIALVIDEOFRAMEDIALOG_H__
